#ifndef WAVESHAPE2_SOFTERCLIP_H_
#define WAVESHAPE2_SOFTERCLIP_H_

#include <Arduino.h>
#include "mozzi_pgmspace.h"

/* table for waveshaper to impose softer clipping
*/

#define WAVESHAPE2_SOFTERCLIP_NUM_CELLS 256
#define WAVESHAPE2_SOFTERCLIP_SAMPLERATE 256

CONSTTABLE_STORAGE(int8_t) WAVESHAPE2_SOFTERCLIP_DATA []  =
        {
          	-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, 
	-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, 
	-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, 
	-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, 
	-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, 
	-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -126, -126, 
	-125, -124, -124, -123, -122, -121, -120, -119, -118, -117, -115, -114, 
	-112, -111, -109, -108, -106, -104, -102, -100, -98, -96, -94, -92, 
	-90, -88, -85, -83, -81, -78, -76, -73, -71, -68, -65, -63, 
	-60, -57, -54, -51, -48, -46, -43, -40, -37, -34, -31, -28, 
	-24, -21, -18, -15, -12, -9, -6, -3, 0, 3, 6, 9, 
	12, 15, 18, 21, 24, 28, 31, 34, 37, 40, 43, 46, 
	48, 51, 54, 57, 60, 63, 65, 68, 71, 73, 76, 78, 
	81, 83, 85, 88, 90, 92, 94, 96, 98, 100, 102, 104, 
	106, 108, 109, 111, 112, 114, 115, 117, 118, 119, 120, 121, 
	122, 123, 124, 124, 125, 126, 126, 127, 127, 127, 127, 127, 
	127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 
	127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 
	127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 
	127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 
	127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 
	127, 127, 127, 127, 
        };

#endif /* WAVESHAPE2_SOFTERCLIP_H_ */
